#pragma once

#include <QWidget>

#include "ui_Pacs_Left_BottomWidget.h"
class Pacs_Patient;
class Pacs_Left_BottomWidget : public QWidget
{
	Q_OBJECT

public:
	Pacs_Left_BottomWidget(QWidget *parent = Q_NULLPTR);
	~Pacs_Left_BottomWidget();
private slots:
	void OnRecvNewPatient(const QString& strCheckNum);
	void OnAddNewCheckingOrChecked(Pacs_Patient* patient);
	void OnAddEndCheckingOrChecked(Pacs_Patient* patient);
private slots:
	void on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
	void on_treeWidgetCheckEnd_itemDoubleClicked(QTreeWidgetItem *item, int column);
	void on_treeWidgetHangUp_itemDoubleClicked(QTreeWidgetItem *item, int column);

	void on_btn_CallSick_clicked();
	void on_btn_ReCall_clicked();
	void on_btn_SetEnd_clicked();
	void on_btn_HangUp_clicked();

	//void on_treeWidget_itemClicked(QTreeWidgetItem *item, int column);

private:
	void OnInitPatientQueue();
	void OnInitPatientCheckEnd();
	void OnInitPatientHangUp();
	void OnReAddInQueue(const QString& strCheckNum);
private:
	Ui::Pacs_Left_BottomWidget ui;
};
